package com.gift.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 交易记录表
 */
public class DealTable {
    /**
     * 交易记录ID
     */
    private Integer did;
    /**
     * 本班交易关联游戏名字
     */
    private String gname;
    /**
     * 本班交易关联游戏ID
     */
    private Integer gid;

    /**
     * 卖出多少分
     */
    private BigDecimal sellingscore;
    /**
     * 送出多少分
     */
    private BigDecimal giftscore;
    /**
     * 本班买了多少分
     */
    private BigDecimal buyscore;
    /**
     * 本次交易分数和钱的比例
     */
    private BigDecimal proportion;
    /**
     * 帮忙敲分
     */
    private BigDecimal helpscore;
    /**
     * 被帮助者的名字
     */
    private String helpedname;
    /**
     * 被帮助者的ID
     */
    private Integer helpeduid;
    /**
     * 班次；早中晚：012
     */
    private Integer  shift;
    /**
     * 操作者ID
     */
    private Integer handlerid;
    /**
     * 操作者；本班上班人
     */
    private String handlers;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifytime;

    public DealTable(Integer did, String gname, Integer gid,BigDecimal sellingscore, BigDecimal giftscore, BigDecimal buyscore,BigDecimal proportion, BigDecimal helpscore, String helpedname, Integer helpeduid, Integer  shift,Integer handlerid, String handlers, String remark, LocalDateTime createtime, LocalDateTime modifytime) {
        this.did = did;
        this.gname = gname;
        this.gid = gid;
        this.sellingscore = sellingscore;
        this.giftscore = giftscore;
        this.buyscore = buyscore;
        this.proportion = proportion;
        this.helpscore = helpscore;
        this.helpedname = helpedname;
        this.helpeduid = helpeduid;
        this.shift=shift;
        this.handlerid = handlerid;
        this.handlers = handlers;
        this.remark = remark;
        this.createtime = createtime;
        this.modifytime = modifytime;
    }

    public DealTable() {
        super();
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname == null ? null : gname.trim();
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public BigDecimal getSellingscore() {
        return sellingscore;
    }

    public void setSellingscore(BigDecimal sellingscore) {
        this.sellingscore = sellingscore;
    }

    public BigDecimal getGiftscore() {
        return giftscore;
    }

    public void setGiftscore(BigDecimal giftscore) {
        this.giftscore = giftscore;
    }

    public BigDecimal getBuyscore() {
        return buyscore;
    }

    public void setBuyscore(BigDecimal buyscore) {
        this.buyscore = buyscore;
    }

    public BigDecimal getProportion() {
        return proportion;
    }

    public void setProportion(BigDecimal proportion) {
        this.proportion = proportion;
    }

    public BigDecimal getHelpscore() {
        return helpscore;
    }

    public void setHelpscore(BigDecimal helpscore) {
        this.helpscore = helpscore;
    }

    public String getHelpedname() {
        return helpedname;
    }

    public void setHelpedname(String helpedname) {
        this.helpedname = helpedname == null ? null : helpedname.trim();
    }

    public Integer getHelpeduid() {
        return helpeduid;
    }

    public void setHelpeduid(Integer helpeduid) {
        this.helpeduid = helpeduid;
    }

    public Integer getShift() {
        return shift;
    }

    public void setShift(Integer shift) {
        this.shift = shift;
    }

    public Integer getHandlerid() {
        return handlerid;
    }

    public void setHandlerid(Integer handlerid) {
        this.handlerid = handlerid;
    }

    public String getHandlers() {
        return handlers;
    }

    public void setHandlers(String handlers) {
        this.handlers = handlers == null ? null : handlers.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public LocalDateTime getModifytime() {
        return modifytime;
    }

    public void setModifytime(LocalDateTime modifytime) {
        this.modifytime = modifytime;
    }

    @Override
    public String toString() {
        return "DealTable{" +
                "did=" + did +
                ", gname='" + gname + '\'' +
                ", gid=" + gid +
                ", sellingscore=" + sellingscore +
                ", giftscore=" + giftscore +
                ", buyscore=" + buyscore +
                ", proportion=" + proportion +
                ", helpscore=" + helpscore +
                ", helpedname='" + helpedname + '\'' +
                ", helpeduid=" + helpeduid +
                ", shift=" + shift +
                ", handlerid=" + handlerid +
                ", handlers='" + handlers + '\'' +
                ", remark='" + remark + '\'' +
                ", createtime=" + createtime +
                ", modifytime=" + modifytime +
                '}';
    }
}